Trace formatting using plot_pandas_GUI()

You can try this notebook live by lauching it in Binder.This can take a while to launch, be patient. Binder.

First we import pandas and pandas_GUI, and load some data. In this case we will load two time dependent Laser Induced Fluorescence (LIF) data sets.

Default plot of the two data sets

This is the plot made in the step-by-step example.

Figure 1: This should display a live plotly plot that can be zoomed and show point values upon hovering. If you do not see a live plot the notebook is not running or trusted. Click on the 'Not Trusted' button in the Jupyter menu bar to trust the notebook.

Trace formatting options

Rather than using the default plot options, before adding a trace to the plot you can customize how it will be displayed.

An image of the expanded trace formatting section is shown below.

Trace formatting section of tab 1

The options available are a subset of all the plotly options. If you want slightly different format options you can edit the code created by the GUI and run it again.

The plots below illustrate the available trace formatting options.

Trace Style

Figure 2: Example of the lines, markers and lines+markers trace styles. You may find it easier to see the differences if you zoom in.

Line Style

Figure 3: Examples of the solid, dot, dash and dashdot line styles.

Color

If the default setting is used the colors will be assigned automatically by plotly based on the plot style chosen. Otherwise there are 9 colors to choose from that contrast with each other pretty well (except for not being fully red/green colorblind friendly).

Figure 4: Available color choices.

Markers

Markers can be either solid or unfilled. You can specify the marker color, but this GUI only supports the same fill and marker color. You can edit the generated code to have a fill color different from the marker outline color.

Figure 5: Each marker can be filled or open.

Linewidth and Marker Size

These are specified in pixels, so the actual size will vary with the pixel size of the monitor the graph is viewd on. A few examples are shown below.

Learn More

In addition to trying it below if this is a live notebook, you can look at the other examples listed in the Pandas GUI website.

Try It

If you are running this notebook live in binder you can try it here by running the first cell to import the tools and data. Then run the cell below to create the GUI. Note: You may want to expand the collapsed instructions to learn more about each tab.